b45f32ba028f0fcd14761a481065ece826bc6852,portal-impl/src/com/liferay/portal/security/ldap/AttributesTransformerFactory.java,AttributesTransformerFactory,getInstance,#,29
Before Change
public class AttributesTransformerFactory {
public static AttributesTransformer getInstance() {
if (_originalAttributesTransformer == null) {
if (_log.isDebugEnabled()) {
_log.debug(
"Instantiate " + PropsValues.LDAP_ATTRS_TRANSFORMER_IMPL);
}
ClassLoader classLoader =
PACLClassLoaderUtil.getPortalClassLoader();
try {
_originalAttributesTransformer =
(AttributesTransformer)InstanceFactory.newInstance(
classLoader, PropsValues.LDAP_ATTRS_TRANSFORMER_IMPL);
}
catch (Exception e) {
_log.error(e, e);
}
}
if (_attributesTransformer == null) {
_attributesTransformer = _originalAttributesTransformer;
}
if (_log.isDebugEnabled()) {
After Change
try {
_attributesTransformer =
(AttributesTransformer)classLoader.loadClass(
PropsValues.LDAP_ATTRS_TRANSFORMER_IMPL).newInstance();
}
catch (Exception e) {
_log.error(e, e);